home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 2 / MECOMP-CD-II.iso / amiga / tools / system / installerfx / examples / fade example < prev    next >
Encoding:
Text File  |  1997-09-20  |  1.6 KB  |  104 lines

  1. ; InstallerFX script
  2. (if (= x 1) (welcome))
  3.  
  4. (onerror (CLEANUP))
  5.  
  6. ; Cleanup any temporary mess we created
  7. (procedure CLEANUP
  8.     ; Nothing to cleanup
  9.     (delete "t:Background")
  10.     (delete "t:Background.prefs")
  11.     (delete "t:Logopic")
  12.     (delete "t:Logopic.prefs")
  13. ) ; CLEANUP
  14.  
  15. (set @user-level 0)
  16.  
  17. ;(set Opt 3)
  18. ;(complete 0)
  19.  
  20. (copyfiles
  21.     (source "InstallerFX/Bluefade")
  22.     (dest "t:")
  23.     (newname "Background")
  24. )
  25.  
  26. (copyfiles
  27.     (source "InstallerFX/Background.prefs")
  28.     (dest "t:")
  29.     (newname "Background.prefs")
  30. )
  31.  
  32. (run "run InstallerFX/InstallerFX t:background")
  33.  
  34. (set @user-level 2)
  35.  
  36. ;Get directory to install test to:
  37. (set destdir 
  38.     (askdir 
  39.         (prompt "In which drawer should testfiles be installed?") 
  40.         (help @askdir-help)
  41.         (default ("t:"))
  42.     )
  43. )
  44.  
  45. (copyfiles
  46.     (source "InstallerFX/MagicSelector")
  47.     (dest "t:")
  48.     (newname "Logopic")
  49. )
  50.  
  51. (copyfiles
  52.     (source "InstallerFX/MagicSelector.prefs")
  53.     (dest "t:")
  54.     (newname "Logopic.prefs")
  55. )
  56.  
  57. (run "run InstallerFX/InstallerFX t:Logopic")
  58.  
  59. (complete 10)
  60.  
  61. (set installfiles
  62.     (askoptions
  63.         (prompt "Which of the following optional programs/helpfile should be installed ?")
  64.         (help @askoptions-help)
  65.         (choices "InstallerFX")
  66.         (default Opt)
  67.     )
  68. )
  69.  
  70. (complete 50)
  71.  
  72. ;Copy program files to destination.
  73.  
  74. (if (BITAND installfiles 1)
  75. (copyfiles
  76.     (source "InstallerFX")
  77.     (dest destdir)
  78.     (all)
  79. )
  80. )
  81.  
  82. (set installfiles
  83.     (askoptions
  84.         (prompt "Which of the following optional programs/helpfile should be installed ?")
  85.         (help @askoptions-help)
  86.         (choices "InstallerFX")
  87.         (default Opt)
  88.     )
  89. )
  90.  
  91.  
  92. (if (BITAND installfiles 1)
  93. (copyfiles
  94.     (source "InstallerFX")
  95.     (dest destdir)
  96.     (all)
  97. )    
  98. )
  99.  
  100. (complete 100)
  101.  
  102. (CLEANUP)
  103. (exit)
  104.